﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:sys="clr-namespace:System;assembly=mscorlib"
    xmlns:v="clr-namespace:ShredTheLog.Views;assembly=ShredTheLog.Views"
    xmlns:vm="clr-namespace:ShredTheLog.ViewModels;assembly=ShredTheLog.ViewModels"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    >

    <DataTemplate DataType="{x:Type vm:MessageDialogViewModel}">
        <TextBox Text="{Binding Path=Message, Mode=OneWay}" IsReadOnly="True" VerticalAlignment="Center" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto" BorderThickness="0">
            <TextBox.Template>
                <ControlTemplate TargetType="{x:Type TextBox}">
                    <ScrollViewer Margin="0" x:Name="PART_ContentHost" Padding="{TemplateBinding Padding}"/>
                </ControlTemplate>
            </TextBox.Template>
        </TextBox>
    </DataTemplate>
</ResourceDictionary>